<template>
  <div style="height: 100%">
    <div class="ds-box2">
      <div class="ds-grow">
        <input v-model="search" class="bj-input" type="text" />
      </div>
      <div><button class="bj-button bj-button-primary" @click="submit">搜索</button></div>
    </div>
  </div>
</template>

<script>
import Message from './message.vue'
export default {
  data() {
    return {
      search: '',
    }
  },
  methods: {
    submit() {
      if (this.search.length == 0) {
        Message.success('参数错误')
        return
      }
      console.log(this.search)
    },
  },
}
</script>

<style scoped></style>
